package com.ruoyi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.VipHaircutMapper;
import com.ruoyi.domain.VipHaircut;
import com.ruoyi.service.IVipHaircutService;
import com.ruoyi.common.core.text.Convert;

/**
 * 会员管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-08-09
 */
@Service
public class VipHaircutServiceImpl implements IVipHaircutService
{
    @Autowired
    private VipHaircutMapper vipHaircutMapper;

    /**
     * 查询会员管理
     * 
     * @param id 会员管理ID
     * @return 会员管理
     */
    @Override
    public VipHaircut selectVipHaircutById(Long id)
    {
        return vipHaircutMapper.selectVipHaircutById(id);
    }

    /**
     * 查询会员管理列表
     * 
     * @param vipHaircut 会员管理
     * @return 会员管理
     */
    @Override
    public List<VipHaircut> selectVipHaircutList(VipHaircut vipHaircut)
    {
        return vipHaircutMapper.selectVipHaircutList(vipHaircut);
    }

    /**
     * 新增会员管理
     * 
     * @param vipHaircut 会员管理
     * @return 结果
     */
    @Override
    public int insertVipHaircut(VipHaircut vipHaircut)
    {
        return vipHaircutMapper.insertVipHaircut(vipHaircut);
    }

    /**
     * 修改会员管理
     * 
     * @param vipHaircut 会员管理
     * @return 结果
     */
    @Override
    public int updateVipHaircut(VipHaircut vipHaircut)
    {
        return vipHaircutMapper.updateVipHaircut(vipHaircut);
    }

    /**
     * 删除会员管理对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteVipHaircutByIds(String ids)
    {
        return vipHaircutMapper.deleteVipHaircutByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除会员管理信息
     * 
     * @param id 会员管理ID
     * @return 结果
     */
    @Override
    public int deleteVipHaircutById(Long id)
    {
        return vipHaircutMapper.deleteVipHaircutById(id);
    }

    @Override
    public Long selectmoney(Long id) {
        return vipHaircutMapper.selectmoney(id);
    }

    @Override
    public int updatemoney(Long nowmoney,Long id) {
        return vipHaircutMapper.updatemoney(nowmoney,id);
    }
}
